#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{

	int i = 0;
	scanf("%d", &i);
	int j = 0;
	scanf("%d", &j);
	int m;
	int n;
	for (m = 1; m <= i; m++)
	{
		for (n = 1; n <= j; n++)
		{
			printf("#");
		}
		printf("\n");
	}
	return 0;
}